package com.xinsoft.entity.dto;

import com.xinsoft.entity.po.ScmProduceInstock;
import com.xinsoft.entity.po.ScmProduceInstockItem;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 生产入库保存参数
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ScmProduceInstockDTO extends ScmProduceInstock {

    @Valid
    @NotEmpty(message = "生产入库明细不能为空")
    List<ScmProduceInstockItem> scmProduceInstockItemList;
}
